<?php
namespace app\common\logic;

use think\Model;


class DrawSec extends Model
{

    public function change($data = [])
    {
        return $this->saveAll($data);
    }

    public function saveChange($data){
        if(is_numeric($data['id'])){
            return $this->allowField(true)->save($data,[$this->getPk()=>$data['id']]);
        }else{
            $this->allowField(true)->save($data);
        }
    }


}